<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/books}" method="post" >
  图书名称：<input type="text" name="name" th:value="${name}">
  图书类别：<input type="text" name="category" th:value="${category}">
  图书作者：<input type="text" name="author" th:value="${author}">
  <input type="submit" value="查询">
</form>
    <table border="1">
      <tr>
        <th>编号</th>
        <th>书名</th>
        <th>价格</th>
        <th>类目</th>
        <th>库存</th>
        <th>图片</th>
        <th>说明</th>
        <th>作者</th>
        <th>已售</th>
      </tr>

      <tr th:each="books:${list}">
        <th th:text="${books.id}"></th>
        <th th:text="${books.name}"></th>
        <th th:text="${books.price}"></th>
        <th th:text="${books.category}"></th>
        <th th:text="${books.pnum}"></th>
        <th th:text="${books.imgurl}"></th>
        <th th:text="${books.description}"></th>
        <th th:text="${books.author}"></th>
        <th th:text="${books.sales}"></th>
      </tr>
    </table>


</body>
</html>